import request from '@/utils/request'
//合同模板列表列表查询
export  function listTemplate(query){
    return request({
        url:"/loan/loanContractTemp/list",
        method: 'post',
        data:query
    })
}
//新增合同模板
export  function addTemplate(query){
    return request({
        url:"/loan/loanContractTemp/add",
        method: 'post',
        data:query
    })
}
//修改合同模板
export  function updateTemplate(query){
    return request({
        url:"/loan/loanContractTemp/update",
        method: 'post',
        data:query
    })
}
//删除合同模板
export  function delTemplate(id){
    return request({
        url:"/loan/loanContractTemp/"+id,
        method: 'delete',
    })
}
//查询合同模板详情
export  function oneTemplate(id){
    return request({
        url:"/loan/loanContractTemp/query/"+id,
        method: 'get'
    })
}
//修改合同模板状态
export  function upStateTemplate(id,state){
    return request({
        url:`/loan/loanContractTemp/${id}/state/${state}`,
        method: 'get'
    })
}